package com.srit.map.business.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.srit.core.ibatis.dao.SqlMapDao;
import com.srit.map.business.bean.Menu;
import com.srit.map.business.service.MenuService;

/**
 * @author chenxiling
 *
 */
@Service
public class MenuServiceImpl implements MenuService{
	@Autowired(required = true)
	private SqlMapDao sqlMapDao;
	
	private Menu menu=new Menu();
	@Override
	public List getMenuList() {
		
		
		// TODO Auto-generated method stub
		List list=sqlMapDao.queryForList("menu.getMenu", menu);
		
		return list;
	}
	@Override
	public List getMenuListByPid(Map parMap) {
		List list=sqlMapDao.queryForList("menu.getMenuByPid", parMap);		
		return list;
	}
	
	

	
}
